﻿using System;

namespace Enferno.Public.Web.Product
{
    public static class ProductHelper
    {
        private static string _bundlePath;
        private static readonly Lazy<ProductBundler> BundlerInstance = new Lazy<ProductBundler>(() => _bundlePath == null ? new ProductBundler() : new ProductBundler(_bundlePath)); 

        public static ProductBundler Bundler
        {
            get { return BundlerInstance.Value; }
        }

        public static string BundlePath
        {
            get { return Bundler.BundlePath; }
            set { _bundlePath = value; }
        } 
    }
}
